<%
  submit_label = "Update"
  submit_label = "Create" if @picture.new_record?
-%>

<%= error_messages_for :picture %>

<% form_for(@picture, :html => { :multipart => true }) do |f| %>
  <%= render :partial => "data" %>
  <p> <%= f.submit submit_label %> </p>
<% end %>
